/**
 * 这个模块以后可以用命令工具，自动注册
 * @author yangxiao
 * @module app/game/module-register
 */

import * as getClass from '../../util/get-class';

export let _ls:any[]=[];

export function register(){

     _ls[protoBufMsg.head.msg_login_login_c2s] = getClass.getModuleFunction('login/user-login',__dirname);
     
}

export function excModuleMain(msg_code:number,sessionID:string,message:any):any{
    if(_ls[msg_code]==null){
        return;
    }
    _ls[msg_code](sessionID,message);
}